package io;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class FlushDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("no.txt");
        BufferedOutputStream bos=new BufferedOutputStream(fos);
        String line="时间啊对我国球队完全归感情五一";
        bos.write(line.getBytes(StandardCharsets.UTF_8));
        bos.flush();
        System.out.println("写出完毕");

    }
}
